.formatted-header {
	margin: 16px 0 24px;
	text-align: center;

	@include breakpoint( '>960px' ) {
		margin-bottom: 35px;

		&.is-without-subhead {
			margin-bottom: 24px;
		}
	}

	&.is-left-align,
	&.is-right-align {
		margin: 16px;

		@include breakpoint( '>660px' ) {
			margin: 0 0 16px;
		}
	}

	&.is-left-align {
		text-align: left;
	}

	&.is-right-align {
		text-align: right;
	}
}

.formatted-header__title {
	font-size: 20px;
	margin-top: 24px;
	padding: 0 10px;
	line-height: 1.2em;

	@include breakpoint( '>660px' ) {
		font-size: 24px;
		padding: 0;
		margin: 0 0 5px;
	}

	.is-left-align &,
	.is-right-align & {
		margin-top: 0;
		padding: 0;
	}
}

.formatted-header__subtitle {
	color: var( --color-neutral-50 );
	font-size: 14px;
	padding: 0 20px 24px;

	@include breakpoint( '>480px' ) {
		padding: 0;
	}

	.is-left-align &,
	.is-right-align & {
		padding: 0;
	}
}

// Compact header on small screens
.formatted-header.is-compact-on-mobile {
	@include breakpoint( '<660px' ) {
		text-align: left;

		.formatted-header__title {
			font-size: 17px;
			font-weight: 600;
			padding: 0 24px;
		}

		.formatted-header__subtitle {
			padding: 0 24px 12px;
		}
	}
}
